//
//  CategoryIconView.swift
//  KoiPrototype2
//
//  Created by 纪洪文 on 03.03.25.
//

import SwiftUI

struct CategoryIconView: View {
    let item:AccountingCategory
    var body: some View {
        ZStack {
            Image("koi_ic_category_item_bg")
                .resizable()
                .frame(width:40, height: 40)
            Image(item.getIconAssetUri())
                .resizable()
                .frame(width: 24,height: 24)
        }
    }
}

#Preview {
    CategoryIconView(item: AccountingCategory(icon: "linearicon://airplane"))
}
